﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HanGu.Entity;
using System.ServiceModel;

namespace HanGu.Services.Interface
{
    [ServiceContract(Name = "Dictionary", Namespace = "http://www.haigu.com/")]
    public interface IDictionary
    {
        [OperationContract]
        List<Dictionary> GetAll();
        [OperationContract]
        List<Dictionary> GetAll(UniversallySearchParam searchparma);
        List<Dictionary> GetByGroupName(string groupName);
        [OperationContract]
        Dictionary GetByID(string key);
        [OperationContract]
        Dictionary GetByID(string groupname, string key);
        [OperationContract]
        bool Add(Dictionary model);
        [OperationContract]
        int? AddBySP(Dictionary model);
        [OperationContract]
        bool Update(Dictionary model);
        [OperationContract]
        bool Delete(string key, string groupname);
        [OperationContract]
        bool DeleteGroupName(string groupName);
        [OperationContract]
        bool IsExits(string groupName,string key);

    }
}
